dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a444986
)
make gzopen() portable by using binary flag
author
Antoine Musso
<hashar@users.mediawiki.org>
Wed, 8 Feb 2012 07:03:20 +0000
(07:03 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Wed, 8 Feb 2012 07:03:20 +0000
(07:03 +0000)
r110871 forgot the 'b' flag which make sure gzopen handle file
content in binary form. That is for portability accross platforms.
includes/cache/FileCacheBase.php
patch
|
blob
|
history
diff --git
a/includes/cache/FileCacheBase.php
b/includes/cache/FileCacheBase.php
index
29cc8a1
..
3740165
100644
(file)
--- a/
includes/cache/FileCacheBase.php
+++ b/
includes/cache/FileCacheBase.php
@@
-117,7
+117,7
@@
abstract class FileCacheBase {
*/
public function fetchText() {
// gzopen can transparently read from gziped or plain text
- $fh = gzopen( $this->cachePath(), 'r' );
+ $fh = gzopen( $this->cachePath(), 'r
b
' );
return stream_get_contents( $fh );
}